package edu.cmu.lti.ritesdk.sample;

import edu.cmu.lti.ritesdk.AbstractRiteSystem;
import edu.cmu.lti.ritesdk.AnalyzedTextPair;
import edu.cmu.lti.ritesdk.TextPair;

/**
 * Very simple toy implementation of the RITE system for BC subtask.
 * 
 * @author Hideki Shima
 *
 */
public class RandomBCSystem extends AbstractRiteSystem {

  @Override
  public AnalyzedTextPair run(TextPair t) {
    double rand = Math.random();
    String systemLabel = rand > 0.5d ? "Y" : "N";
    AnalyzedTextPair result = new AnalyzedTextPair( t, systemLabel, rand );
    return result;
  }

}
